Skip to main content

topMargin

Type

property

Summary

Specifies how close text within an object can come to the object's upper edge, and how close objects in a group can come to the group's upper edge.

Syntax

set the topMargin of {<button> | <field> | <group>} to <pixels>

Description

Use the topMargin property to change the amount of blank space between an object's top edge and its contents.

The topMargin property of a field specifies how many blank pixels are left between the object's top edge and its contents. The topMargin of a group specifies how far the group's top edge extends below its uppermost object.

An object's topMargin property is equal to item 2 of its margins property.

Examples

set the topMargin of button "OK" to 10

keyword: default, item, integer, field, button

object: field

property: pixels, wideMargins, margins

command: group

glossary: object, property, non-negative, group

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?